package com.demo.ribbon.sample.controller;

import com.demo.ribbon.sample.domain.Hello;
import com.demo.ribbon.sample.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    HelloService helloService;

    @GetMapping("/user/add")
    public Hello add(String name, Integer age) {
        return helloService.add(name, age);
    }


}
